package com.dhwl.hsh.merchant.model;

import com.dhwl.hsh.lib.bean.HttpResponse;
import com.dhwl.hsh.lib.bean.resp.DataPage;
import com.dhwl.hsh.lib.bean.resp.OrderDetailResp;
import com.dhwl.hsh.lib.bean.resp.OrderListResponse;

import rx.Observable;

/**
 * 简要描述
 *
 * @author Derek.Kidd
 * @version V1.0.0
 * @date 2016-04-13 15:35
 */
public interface IOrderModel {

    Observable<HttpResponse<DataPage<OrderListResponse>>> getOrders(int pageNo, int orderState);

    Observable<HttpResponse<OrderDetailResp>> getOrderDetail(String orderId);

    Observable<HttpResponse<String>> cancelOrder(int type, String orderId);
}
